/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package escom.ipn.modelo.facade;

import escom.ipn.modelo.dao.Carro_Radio_PatrullaDAO;
import escom.ipn.modelo.dto.Carro_Radio_Patrulla;
import java.sql.Connection;
import java.sql.SQLException;
import java.util.List;

/**
 *
 * @author Daniel
 */
public class Carro_Radio_PatrullaFacade {
    private Connection cnn;
    private Carro_Radio_PatrullaDAO dao;
    
    public Carro_Radio_PatrullaFacade (Connection cnn){
        this.cnn = cnn;
        dao = new Carro_Radio_PatrullaDAO();
    }
    
    public List listarPoliciasLibres(int s) throws SQLException{
        return dao.loadPoliciasLibres(s, cnn);
    }
    
    public  Carro_Radio_Patrulla PolicaiasID(Carro_Radio_Patrulla a) throws SQLException{
        return dao.loadPoliciaID(a, cnn);
    }
}
